Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |euclid_div

std/ops/num::|euclid_div


Usage

|euclid_div<N>(a, b)

Generics

◻ N: Euclid

Parameters

↳ a: N
↳ b: N

Return

N


Proceed to euclidian division of a by b

This function is infaillible but may overflow if a ÷ b is out of bounds for the data type.
⚠️ For integers, this function returns 0 for divisions by 0.
ℹ️ For floating types, this function return infinity for divisions by 0.